package com.itheima.api.treeset.demo05;

public class Student {

    private String name ;

    private int chineseScore ;

    private int mathScore ;

    private int englishScore ;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getChineseScore() {
        return chineseScore;
    }

    public void setChineseScore(int chineseScore) {
        this.chineseScore = chineseScore;
    }

    public int getMathScore() {
        return mathScore;
    }

    public void setMathScore(int mathScore) {
        this.mathScore = mathScore;
    }

    public int getEnglishScore() {
        return englishScore;
    }

    public void setEnglishScore(int englishScore) {
        this.englishScore = englishScore;
    }

    // 为了方便的获取总分，因此我们需要提供了一个方法
    public int getTotal() {
        return this.chineseScore +  this.mathScore + this.englishScore ;
    }

}
